/* 头部 */
* {
    margin: 0;
    padding: 0;
}

.w {
    width: 1200px;
    margin: auto;
}

body {
    background-color: #f3f5f7;
}

a {
    text-decoration: none;
}

.header {
    height: 42px;
    /* 注意此地方会恿覆盖掉 父盒子的 margin */
    margin: 30px auto;
    /* background-color: pink; */
}

li {
    list-style: none;
}

.log {
    float: left;
    width: 198px;
    height: 42px;
    /* background-color: purple; */
}

.nav {
    float: left;
    margin-left: 60px;
}

.nav ul li a {
    height: 42px;
    line-height: 42px;
    padding: 0 10px;
    font-size: 18px;
    /* color: #050505; */

}

.nav ul li {
    float: left;
    list-style: none;
    margin: 0 15px;
}

.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}

.serach {
    float: left;
    width: 412px;
    height: 42px;
    background-color: skyblue;
    margin-left: 50px;
}

.serach input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0px;
    text-indent: 2em;
    font-size: 14px;
    padding-left: 15px;
}

.serach button {
    float: left;
    width: 50px;
    height: 42px;
    background-image: url(../images/btn.png);
    /* button默认有边框 */
    border: none;

}

.user {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    height: 42px;
}

/* banner部分 */
.banner {
    height: 421px;
    background-color: #1c036c;
}

/* 版心 */
.banner .w {
    height: 421px;
    background-image: url(../images/banner2.png)
}

.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background-color: rgba(0, 0, 0, 0.3);
}

.subnav ul li a {
    font-size: 14px;
    color: #fff;
}

.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}

.subnav ul li a span {
    float: right;
}

.subnav ul li a:hover {
    color: #00a4ff;
}

/* 我的课程表 */
.course {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}

.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}

.bd {
    padding: 0 20px;
}

.bd ul li {
    list-style: none;
    padding: 14px 0;
    border-bottom: 1px solid #000;
}

.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    text-align: center;
    line-height: 38px;
    font-size: 16px;
    font-weight: 700;
}

/* < !-- 精品推荐start --> */
.goods {
    margin-top: 10px;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 4px 3px rgba(0, 0, 0, .1);
    line-height: 60px;
}

.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}

.goods ul {
    float: left;
    margin-left: 30px;
}

.goods ul li {
    float: left;
}

.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: black;
    border-left: #000 1px solid;
}

.mod {
    float: right;
    margin-right: 30px;
    font-size: 16px;
    color: #00a4ff;
}


/* < !-- 精品推荐end --> */
/* 精品大模块 */
.box {
    margin-top: 30px;
}

.box .box-hd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
}

.box .box-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}

.box-bd ul {
    width: 1225px;
}

.box-hd {
    height: 45px;
}

/* 把li的父新修改的足够宽 一行能装5个盒子就不会换行了  */
.box-bd ul li {
    float: left;
    width: 230px;
    height: 270px;
    background-color: pink;
    margin-right: 15px;

}